package com.es.www;

/**
 * @Created by michangtao
 * @Date 2022/5/23 10:32
 * @Description
 */
public class Client {

    public static void main(String[] args) {
        Subject subject = new ConcreteSubject();
        subject.addObserver(new ConcreteObserver1());
        subject.addObserver(new ConcreteObserver2());
        subject.notifyObserver();
    }
}
